﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SysMirrorList.aspx.cs" Inherits="SysMirrorList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />

    <script src="js/date.js" type="text/javascript" language="javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="842" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr style="color: blue; font-size: 14px;">
                <td style="height: 14px">
                    <img src="images/list.gif" width="14px" height="14px" />系统镜像管理--&gt;备份记录查询
                </td>
            </tr>
            <tr>
                <td style="height: 18px">
                    使用人:<asp:TextBox ID="txtdeviceUser" runat="server" Width="80px"></asp:TextBox>
                    所属部门:<asp:DropDownList ID="DeviceDpt" runat="server">
                    </asp:DropDownList>
                    备份位置:<asp:DropDownList ID="ddlErrType" runat="server">
                    </asp:DropDownList>
                    <%--设备型号:<asp:TextBox ID="txtdeviceModel" runat="server"></asp:TextBox>--%><br />
                    设备序列号:<asp:TextBox ID="deviceNumber" runat="server"></asp:TextBox>
                    维护时间:<asp:TextBox ID="txtWHSJ" runat="server" MaxLength="20" onfocus="javascript:HS_setDate(this,'btnSelect');"></asp:TextBox>
                    <asp:Button ID="btnSelect" runat="server" Style="display: none" />
                    <asp:Button ID="Btn_Query" runat="server" OnClick="Btn_Query_Click" Text="查询" />
                    <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除" OnClientClick="return confirm('您确认要删除该记录吗?');" /><br />
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
                        DataKeyNames="reservedId" CellPadding="3" CellSpacing="2" DataSourceID="DeviceInfoDataSource"
                        OnRowDataBound="GridView1_RowDataBound" Width="842px" OnPageIndexChanging="GridView1_PageIndexChanging"
                        PageSize="20">
                        <FooterStyle BackColor="#6A5ACD" />
                        <RowStyle BackColor="#D6DFF7" ForeColor="#8C4510" />
                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                        <PagerStyle ForeColor="#FFFFFF" HorizontalAlign="Center" BackColor="#6A5ACD" />
                        <HeaderStyle BackColor="#799AE1" Font-Bold="True" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <%--<asp:CheckBox ID="cbAll" runat="server" AutoPostBack="True" Text="全选" OnCheckedChanged="cbAll_CheckedChanged" />--%>
                                    <input type="checkbox" id="selectall" onclick="SelectAll()">
                                    <asp:Label ID="lb" runat="server">全选</asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbox" runat="server" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" Width="50px" VerticalAlign="Top" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="deviceUser" HeaderText="使用人" SortExpression="deviceUser" />
                            <asp:BoundField DataField="departmentName" HeaderText="所属部门" SortExpression="departmentName" />
                            <asp:BoundField DataField="deviceSerialNumber" HeaderText="设备序列号" SortExpression="deviceSerialNumber" />
                            <asp:BoundField DataField="reservedPathName" HeaderText="备份位置" SortExpression="reservedPathName" />
                            <asp:BoundField DataField="reservedTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="备份时间"
                                SortExpression="reservedTime" HtmlEncode="false" />
                            <asp:HyperLinkField DataNavigateUrlFields="reservedId" DataNavigateUrlFormatString="SysMirrorUpdate.aspx?reservedId={0}"
                                HeaderText="详细" Text="&lt;img src='images/edit.gif' height=15 width=15 border=0&gt;详细" />
                        </Columns>
                    </asp:GridView>
                    &nbsp; &nbsp;
                    <br />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
